package services

import (
	"context"
	"gitee.com/shijun123456/rpcVotes/internal/logic"
	"gitee.com/shijun123456/rpcVotes/internal/svc"
	"gitee.com/shijun123456/srpcinterface/client/votes"
)

type XindaluService struct {
	svcCtx *svc.ServiceContext
}

func (x *XindaluService) GetInfo(ctx context.Context, info *votes.ArgsGetPayInfo) (*votes.ReplyGetPayinfo, error) {
	l := logic.NewXindaluLogic(ctx, x.svcCtx)
	return l.GetInfo(info)
}

//server->config->svcctx
// service
// svcctx
// succtext model redis rpc
// ctx,svcctx -logic
// ctx sctxt
func NewXindaluService(svcCtx *svc.ServiceContext) *XindaluService {
	return &XindaluService{svcCtx: svcCtx}
}
